from django.db import models

# Create your models here.

class test(models.Model):
    source = models.CharField(max_length=64,)
    title = models.CharField(max_length=128)
    updated = models.CharField(max_length=64)
    url = models.CharField(max_length=256)
    cotent=models.TextField()

    def __str__(self):
        return self.source+'.'+self.title


    class Meta:

        ordering = ['-id']



class zikao(models.Model):
    id =models.IntegerField(primary_key=True,auto_created=True)
    source = models.CharField(max_length=64)
    url = models.CharField(max_length=256)
    updatatime = models.DateTimeField(auto_now=True)
